<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
	<div class="input-group" style="margin-left: 36px; margin-bottom: 12px;">
		<span class="input-group-addon" style="width: 80px;">选择班级</span>
			<select id="tbclassid" name="tbClass" class="form-control" onchange="fun()" style="margin-right: 30px;width: 260px;">
				<c:forEach items="${tbClass}" var = "b">
					<option value="${b.id}">${b.className}</option>
				</c:forEach>
			</select>
			<span class="input-group-addon" style="width: 80px;">选择课程</span>
			<select id="courseid" name="course" class="form-control" onchange="fun()" style="width: 260px;">
				<c:forEach items="${course}" var = "b">
					<option value="${b.id}">${b.courseName}</option>
				</c:forEach>
			</select>
	</div>
	<div id="student1"></div>
<script type="text/javascript">
	fun();
	function fun(){
		var tbclassid = $("#tbclassid").val();
		var courseid = $("#courseid").val();
		$("#student1").load("../grade/allstudent?tbclassid="+tbclassid+"&courseid="+courseid);
	}
</script>
